<template>
  <div class="seat">
    <input type="text" v-model="name" placeholder="输入姓名" />
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const name = ref('')
</script>

<style scoped>
.seat {
  border: 2px solid #ff0000;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.3s, transform 0.3s;
}

.seat:hover {
  background-color: #ffffff;
  transform: scale(1.1);
}

input {
  width: 100%;
  border: none;
  outline: none;
  text-align: center;
  border-radius: 50%;
  background-color: transparent;
  color: #333; /* 保持字体颜色 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  font-weight: bold; /* 加粗字体 */
  font-size: 15px; /* 增大字体 */
  color: #000; /* 设置为深色，使字体更加醒目 */
}


.name {
  position: absolute;
  bottom: -25px;
  font-size: 12px;
  color: #333;
  text-align: center;
}
</style> 